// server side library
var __lastId = 0;
var nextId = function(){
  __lastId += 1;
  return __lastId;
};

var Player =  function(sessionId){
  var new_player = {};
  new_player.sid = sessionId;
  new_player.id = nextId();
  return new_player;
}

module.exports = Player;